package cn.itlaobing.web.controller;

import cn.itlaobing.web.entity.SystemUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Controller
@RequestMapping("front")
public class IndexController {

    Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("index")
    public String index(){
        logger.info(">>>>>>>>>>>>>>>>>>>首页");
        return "front/index";
    }

    @RequestMapping("login")
    public String login(){
        logger.info(">>>>>>>>>>>>>>>>>>>登录");
        return "front/login";
    }

    @RequestMapping("register")
    public String register(){
        logger.info(">>>>>>>>>>>>>>>>>>>注册");
        return "front/register";
    }

    @RequestMapping("ceshi")
    public String ceshi(){
        logger.info(">>>>>>>>>>>>>>>>>>>ceshi");
        return "front/ceshi";
    }

    @RequestMapping("dologin")
    public String dologin(SystemUser user){
        logger.info(">>>>>>>>>>>>>>>>>>>表单");

        return null;
    }

}
